import request from '@/utils/request'

// 查询通勤车辆信息库列表
export function listCommuteVehicleData(query) {
  return request({
    url: '/door/commuteVehicleData/list',
    method: 'get',
    params: query
  })
}

// 查询通勤车辆信息库详细
export function getCommuteVehicleData(id) {
  return request({
    url: '/door/commuteVehicleData/' + id,
    method: 'get'
  })
}

// 新增通勤车辆信息库
export function addCommuteVehicleData(data) {
  return request({
    url: '/door/commuteVehicleData',
    method: 'post',
    data: data
  })
}

// 修改通勤车辆信息库
export function updateCommuteVehicleData(data) {
  return request({
    url: '/door/commuteVehicleData',
    method: 'put',
    data: data
  })
}

// 删除通勤车辆信息库
export function delCommuteVehicleData(id) {
  return request({
    url: '/door/commuteVehicleData/' + id,
    method: 'delete'
  })
}
